﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Enterprise.Management.Interfaces;

namespace Enterprise.Management.Caches
{
    public class LoginSessionCache : ILoginCache
    {
        public void Cache(int userid)
        {
            SessionCache.UserId = userid;
        }

        public int GetUserId()
        {
            return SessionCache.UserId;
        }

        public void Clear()
        {
            SessionCache.ClearAll();
        }
    }
}